# coding: UTF-8
import matplotlib.pyplot
from settings import Settings


def set_label(FP_x_label, FP_y_label) -> None:
    """【函 数】设置坐标轴标签
    """
    matplotlib.pyplot.xlabel(FP_x_label)
    matplotlib.pyplot.ylabel(FP_y_label)
    return None


def plot_it(FP_independent_variable, FP_dependent_variable, FP_color="black") -> None:
    """【函 数】绘图
    """
    INS_settings = Settings()
    matplotlib.pyplot.figure(
        figsize=(INS_settings.figurewidth, INS_settings.figureheight))
    matplotlib.pyplot.plot(FP_independent_variable, FP_dependent_variable,
                           linewidth=INS_settings.linewidth, color=FP_color)
    return None
    


def display() -> None:
    """【函 数】显示绘图窗口
    """
    matplotlib.pyplot.autoscale(enable=True, axis='both', tight=True)
    matplotlib.pyplot.show()
    matplotlib.pyplot.style.use()
    return None